﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Utilities.Log;
namespace TestWeb.Controllers
{
    public class TokenController : Controller
    {
        private static LogHelper log = new LogHelper(typeof(TokenController));
        // GET: Token
        public ActionResult Index(string pre)
        {
            string url = pre;
            //log.info("\r\n1:" + url + "\r\n");
            url = (url != null && url != string.Empty) ? "http://yeihizhi.iok.la" + url : "http://yeihizhi.iok.la";
            //log.info("\r\n2:" + url + "\r\n");
            Wx.Api.Token.Web_GetCode(this.HttpContext, url, Wx.Api.Token.spocType.snsapi_base);
            return View();
        }
    }
}